<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a:link {
            color:brown;
        }
        a:visited {
            color: gray;
        }
        a:hover,.try-me:hover {
            color: deepskyblue
        }
        a:active,.try-me:active {
            color: deeppink
        }
        input:focus, select:focus {
            background-color: antiquewhite;
        }
    </style>
</head>
<body>
    <h1>动态伪类选择器</h1>
    <p>伪类选择器如：link / visited / hover /active / focus</p>
    <a href="https://www.baidu.com">百度</a>
    <a href="https://www.zhihu.com">知乎</a>
    <a href="https://www.douban.com/">豆瓣</a>
    <a href="https://www.jd.com/">京东</a>
    <p>其他元素也会有 hover / active 伪类</p>
    <p><span class="try-me">鼠标动我试试</span></p>
    <p>表达输入元素有 focus 伪类选中</p>
    <label>
        姓名:
        <input type="text">
    </label>
    <br>
    <label>
        年龄:
        <input type="text">
    </label>
    <br>
    <label>
        性别:
        <input type="text">
    </label>
    <br>
    <select name="hobby">
        <option value="football">足球</option>
        <option value="basketball">篮球</option>
        <option value="pingpong">乒乓球</option>
    </select>
</body>
</html>